efform_onload = function ()
{
	var now = new Date();
    var year = now.getFullYear();       //年
    var month = now.getMonth() + 1;     //月
    
    var year = $("#inqu_status-0-fdNf").val(year);
    var year = $("#inqu_status-0-fdYf").val(month);
    
    button_query_onclick();
}

button_query_onclick = function () {
	var year = $("#inqu_status-0-fdNf").val();
	var month = $("#inqu_status-0-fdYf").val();
	
	var info = new EiInfo();
	info.set("year",year);
	info.set("month",month);
	if (null != info) { 
		EiCommunicator.send("ZMCGG02", "query", info, ajax_callback);
		EiCommunicator.send("ZMCGG03", "query", info, ajax_callback);
	}
	
	var chartType = "Column3D";
	var data = "2";
	var showValue = "1";
	var bgcolor = "";
	var plotcolor = "";
	
 	
 	ef.get("chart").style.display="block";
	ef.get("chart").src="DispatchAction.do?efFormEname=ZMCGG03&chartType="+chartType+"&data="+data+"&showValues="+showValue+"&bgcolor="+bgcolor+"&plotcolor="+plotcolor;
}

var ajax_callback= {
		onSuccess: function(eiInfo) { 
	
		},
		onFail:function(eMsg)
		{
			EFAlert("新增失败，原因："+eMsg); 
		}
	}
